package com.itheima.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class OrderController {

    @RequestMapping("data")
    public String data(){
        System.out.println("OrderController.data");
        //
        // name.toString();
        return "ok";
    }

    @RequestMapping("data1")
    public String data1(){
        //算数异常
        System.out.println("OrderController.data1");
        return "ok";
    }
}
